//////////////////////////////////////////////////////////////////////////////////
//	 Copyright 2011 by Yosef Grabivker, ryuho@homenetworksoft.com
//
//   Licensed under the Apache License, Version 2.0 (the "License");
//   you may not use this file except in compliance with the License.
//   You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
//   Unless required by applicable law or agreed to in writing, software
//   distributed under the License is distributed on an "AS IS" BASIS,
//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//   See the License for the specific language governing permissions and
//   limitations under the License.
//////////////////////////////////////////////////////////////////////////////////

#ifndef _LOG_OPTIONS_YG_H__
#define _LOG_OPTIONS_YG_H__

#include "def.h"

class CLogOptions: public wxPanel
{
public:
								CLogOptions(wxWindow* pParent);
	virtual						~CLogOptions(void);

	void						SetEnableAppLogSave( bool bSet );
	bool						GetEnableAppLogSave();

	void						SetAppLogSaveFileName( const wxString& str );
	wxString					GetAppLogSaveFileName();

	void						SetAppLogSaveLimit( long lLimit );
	long						GetAppLogSaveLimit();

	void						SetAppLogStatusInterval( long lLimit );
	long						GetAppLogStatusInterval();

	void						SetEnablePerfomanceLog( bool bSet );
	bool						GetEnablePerfomanceLog();

	void						SetEnableConnectionsLog( bool bSet );
	bool						GetEnableConnectionsLog();

	void						SetEnableBandwidthLog( bool bSet );
	bool						GetEnableBandwidthLog();

	void						SetEnableAccessLog( bool bSet );
	bool						GetEnableAccessLog();

	void						SetEnableADSLLog( bool bSet );
	bool						GetEnableADSLLog();

	void						SetEnableWirelessLog( bool bSet );
	bool						GetEnableWirelessLog();

protected:
	void						OnSelectLogFileName(wxCommandEvent& event);
	void						OnTogleLogSaving(wxCommandEvent& event);

	DECLARE_EVENT_TABLE()


private:
	class wxBoxSizer*			m_pLogFileSizer;
	class wxCheckBox*			m_pcbSaveLog;
	class wxTextCtrl*			m_ptcDirName;
	class wxComboBox*			m_pLimitSelector;

	class wxComboBox*			m_pcLogTime;
	class wxCheckBox*			m_pcbPerfomanceLog;
	class wxCheckBox*			m_pcbConnectionsLog;
	class wxCheckBox*			m_pcbBandwidthLog;
	class wxCheckBox*			m_pcbAccessLog;
	class wxCheckBox*			m_pcbADSLLog;
	class wxCheckBox*			m_pcbWirelessLog;


};

#endif //_LOG_OPTIONS_YG_H__
